// 导入vue
import Vue from 'vue';
// 导入路由 vue-router
import VueRouter from 'vue-router';
Vue.use(VueRouter);
import home from './components/tabbar/home.vue';
import member from './components/tabbar/member.vue';
import cart from './components/tabbar/cart.vue';
import search from './components/tabbar/search.vue';
import shop from './components/shop/shop.vue';
import register from './components/member/register.vue';
import newsList from './components/news/newsList.vue';
import newsInfo from './components/news/newsInfo.vue';
import wz from './components/wenzhang/wenzhangList.vue';
import wzinfo from './components/wenzhang/wenzhanginfo.vue'
import goodList from './components/goods/goodList.vue';
import goodInfo from './components/goods/goodInfo.vue';
var router = new VueRouter({
	routes:[
		{path:'/',redirect:'/home'},
		{path:'/home',component:home},
		{path:'/member',component:member},
		{path:'/cart',component:cart},
		{path:'/search',component:search},
		{path:'/home/shop',component:shop},
		{path:'/member/register',component:register},
		{path:'/home/news/newsList',component:newsList},
		{path:'/home/news/newsInfo/:id',component:newsInfo},
		{path:'/home/wenzhang',component:wz},
		{path:'/home/wenzhang/wenzhanginfo/:id',component:wzinfo},
		{path:'/home/goodList',component:goodList},
		{path:'/home/goodInfo/:id',component:goodInfo,name:'goodinfo'}
	
	],
	linkActiveClass:'mui-active'
})

export default router;